<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>枚举管理 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		<style type="text/css">
			#enums .label{
				padding:2px;				
				margin:5px;
				line-height: 150%;
				display: inline-block;
			}
			#enums .controls{
				margin-left:5px;
			}
		</style>
	</head>
	<body>
		<div class="workspace">			
			{include file='core/views/vfs/vfs_navi.tpl'}
		    <div id="enums" class="accordion">
		    	{foreach $_enums_ as $_enum}
            	<div class="accordion-group">
              		<div class="accordion-heading">
                		<a href="#{$_enum@key}" data-parent="#enums" data-toggle="collapse" class="accordion-toggle">{$_enum}</a>
              		</div>
              		<div class="accordion-body collapse {if $_enum@first}in{/if}" id="{$_enum@key}">
                		<div class="accordion-inner" id="{$_enum@key}-wrap">
                  			{foreach from=$_enums[$_enum@key] item=item}
                  				<span id="enum_{$item.enum_id}" class="enums label {$labels|random}"><i class="icon-trash icon-white"></i>{$item.enum_val}</span>
                  			{/foreach}
                  			<br class="clear"/>
                  			<div class="controls">
				              	<div class="input-prepend input-append">
				              		<span class="add-on">{$_enum}</span><input type="text" size="128" id="new-{$_enum@key}" class="span3"><button id="btn-add-{$_enum@key}" type="button" class="btn btn-add"><i class="icon-plus"></i>添加</button>
				              	</div>
				            </div>
                  		</div>
              		</div>
            	</div>
            	{/foreach}   
          	</div>
		</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>		
		<script type="text/javascript" src="enum.js"></script>
	</body>
</html>
